package com.shyroke.daydayzhuanapi.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class MenuTree implements Serializable {

    private Integer mid;

    private Integer parentid;

    private String title;

    private String href;

    private String icon;

    private Boolean spread;

    private List<MenuTree> children = new ArrayList<>();

    public MenuTree(Integer mid, Integer parentid, String title, String href, String icon, Boolean spread) {
        this.mid = mid;
        this.parentid = parentid;
        this.title = title;
        this.href = href;
        this.icon = icon;
        this.spread = spread;
    }

    public MenuTree() {
    }
}